package com.linln.modules.business.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.apache.ibatis.type.LocalDateTimeTypeHandler;
import java.time.LocalDateTime;

/**
 * 加班申请对象
 *
 * @author chaunceyzhong
 */
@Data
@TableName(value = "biz_attendance_apply",autoResultMap = true)
public class AttendanceApply {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 加班开始时间
     */
    @TableField(value = "start_time",typeHandler = LocalDateTimeTypeHandler.class)
    private LocalDateTime startTime;
    /**
     * 加班结束时间
     */
    @TableField(value = "end_time",typeHandler = LocalDateTimeTypeHandler.class)
    private LocalDateTime endTime;
    /**
     * 加班备注
     */
    @TableField("remark")
    private String remark;
    /**
     * 加班申请人ID
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 加班申请人姓名
     */
    @TableField("user_name")
    private String userName;

    /***************
     * 辅助字段
     **************/
    @TableField(exist = false)
    private String status;
    @TableField(exist = false)
    private String auditorName;
    @TableField(exist = false)
    private Long taskId;

}
